<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form>
            <p:focus for="terminal" />

            <p:terminal id="terminal" widgetVar="term" commandHandler="#{terminalBean.handleCommand}"
                        welcomeMessage="Welcome to PrimeFaces Terminal, how are you today?" />

            <p:commandButton type="button" value="Clear" icon="ui-icon-trash" onclick="PF('term').clear()" style="margin-top:10px"/>
        </h:form>
    </h:body>
</html>
